// 版权归 瞄你个汪 所有。使用本代码应遵守相关法律法规和Apache 2.0开源许可要求。
package top.geeke.entity;

import top.geeke.entity.base.EntityBase;
import top.geeke.toolkit.supertable.annotation.SuperColumn;
import top.geeke.toolkit.supertable.annotation.SuperTable;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 系统域登录信息配置表
 * </p>
 * @author 瞄你个汪
 * @since 2024-05-01 12:00:00
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "sys_ldap")
@SuperTable(value = "系统域登录信息配置表", isSystem = true)
public class SysLdap extends EntityBase implements Serializable {
    private static final long serialVersionUID = 1L;

    @SuperColumn(value = "主机", length = 128)
    private String host;

    @SuperColumn(value = "端口")
    private int Port;

    @SuperColumn(value = "用户搜索基准")
    private String baseDn;

    @SuperColumn(value = "绑定DN")
    private String bindDn;

    @SuperColumn(value = "绑定密码")
    private String bindPass;

    @SuperColumn(value = "用户过滤规则")
    private String authFilter = "sAMAccountName=%s";

    @SuperColumn(value = "Ldap版本")
    private String version;

    @SuperColumn(value = "绑定域账号字段属性值")
    private String bindAttrAccount= "sAMAccountName";

    @SuperColumn(value = "绑定用户EmployeeId属性值")
    private String bindAttrEmployeeId = "EmployeeId";

    @SuperColumn(value = "绑定对象Code属性值")
    private String bindAttrCode = "objectGUID";

    @SuperColumn(value = "排序", defaultValue = "100")
    private Integer orderNo;

    @SuperColumn(value = "备注", nullable = true)
    private String remark;

    @SuperColumn(value = "状态", defaultValue = "0")
    private boolean disabled;
}
